<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ page session="false" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page pageEncoding="UTF-8" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />

</head>
<body>
 
 
<c:url var="save" value="/carTypes/save.html?id=${carType.id}" />
<form:form modelAttribute="carType" method="POST" action="${save}">
 <table style="border: 1px solid; width: 625px;">
  
  <tr>
   <td><form:label path="nameThai">Thai Name:</form:label></td>
   <td><form:input path="nameThai"/></td>
  </tr>
 
  <tr>
   <td><form:label path="nameEng">Eng Name:</form:label></td>
   <td><form:input path="nameEng"/></td>
  </tr>
  
  <tr>
   <td><form:label path="detail">Detail:</form:label></td>
   <td><form:input path="detail"/></td>
  </tr>
   
	<tr>
		<td></td>
		<td><button type="submit">บันทึก</button><button type="button">ยกเลิก</button></td>
	</tr>
 </table>
</form:form>
 
</body>
</html>